package com.cwf.org.mapper;

import com.cwf.auth.dto.LoginDTO;
import com.cwf.basic.mapper.BaseMapper;
import com.cwf.org.domain.Employee;
import com.cwf.org.dto.EmployeeRoleDTO;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    void saveRoles(EmployeeRoleDTO employeeRoleDTO);

    void deleteRolesById(Long id);

    List<Long> getRolesById(Long id);

    void truncateRolesByUserId(Serializable id);

    void truncateRolesByIds(@Param("ids") List<Long> ids);

    Employee queryByUsername(LoginDTO loginDTO);

    List<String> querySNById(Long id);

    List<Employee> queryByKeyWords(String keyword);
}
